import {createStore} from 'vuex'

const store=createStore({
    state:{
        ebooks:[],
        user:{}
    },
    mutations:{
        setEbooks(state,ebooks){
            state.ebooks=ebooks;
        },
        setUser(state,user){
            state.user=user;
        }
    }
})

export default store